Join in UNIX

EXAMPLE

$ join file1 file2 > file3

If the content of file1 is:

1 Barbara
2 Peter
3 Stan
4 Marie

and file2 is:

2 Dog
4 Car
7 Cat

the resulting file3 would be:

2 Peter Dog
4 Marie Car
Homepage
Comments

Hide Comments